package com.gitee.magic.framework.head.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema.RequiredMode;

/**
 * @author start
 */
public class PageVO<T> extends ListVO<T> {
	
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Schema(description = "总记录数",requiredMode = RequiredMode.REQUIRED)
	private Integer total;

	public PageVO() {
	}
	
	public PageVO(int code,String message, String logno,String name) {
		super(code,message, logno,name);
	}
	
	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
//		setTotalCount(total);
	}
	
//	private Integer totalCount;
//
//	@Deprecated
//	@Schema(description = "总记录数",requiredMode = RequiredMode.REQUIRED,hidden = true)
//	public Integer getTotalCount() {
//		return totalCount;
//	}
//
//	public void setTotalCount(Integer totalCount) {
//		this.totalCount = totalCount;
//	}

	@Override
	public String toString() {
		return "PageVO{" +
				"total=" + total +
				'}';
	}
}
